<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <include file="Public:jquery" />
        <include file="Public:editor" />
        <include file="Public:startapp" />
        <include file="Public:startmoo" />
        <script type="text/javascript">
        
            var content;
            KindEditor.ready(function(K){
                content = K.create("#content",{
                    uploadJson:'{:U("uploadfile/uploadeditor")}',
                    allowFileManager:true,
                    width : "100%",
                    fileManagerJson:'{:U("filemanage/viewlist")}',
                    afterUpload:function(data){
                        if($("#content_attachment").val() == ""){
                            $("#content_attachment").attr("value",data);
                        }else{
                            $("#content_attachment").attr("value",$("#content_attachment").val()+"|"+data);
                        }
                    }
                });
            });
            
        </script>
        <style type="text/css">
            .page_list      { background : #eee; }
            .page_list tr   { background : #fff; }
        </style>
    </head>
    <body>
        <include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />{$data.title}</div>
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">             
                        <div class="a_table">
                            <form action="__URL__/update" method="post">
                            <input type="hidden" name="cid" value="{$_GET['id']}" />
                            <input type="hidden" name="content_attachment" id="content_attachment" value="{$data.content_attachment}" />
                            <table cellspacing="1" width="100%" class="form_table">
                                <tr>
                                    <td align="right">标题</td>
                                    <td align="left"><input type="text" name="title" class="input_text w480" value="{$data.title}" /></td>
                                </tr>
                                <tr>
                                    <td align="right">正文</td>
                                    <td align="left"><textarea name="content" id="content" style="width: 90%; height:260px;">{$data.content}</textarea></td>
                                </tr>
                                <tr>
                                    <td align="right"></td>
                                    <td align="left">
                                        <div class="submit_default_box">
                                            <input type="submit" class="submit_default" value="提交表单" />
                                            <span class="submit_default_icon" id="submit_icon"></span>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            </form>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
    </body>
</html>